package com.eshop.modules.mp.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.validation.constraints.NotBlank;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("wechat_live_goods")
public class WechatLiveGoods implements Serializable
{
    @TableId(type = IdType.INPUT)
    private Long goodsId;
    private Long productId;
    @TableField(exist = false)
    private String coverImgUrl;
    @NotBlank
    private String coverImgeUrl;
    @NotBlank
    private String url;
    @NotBlank
    private String priceType;
    @NotBlank
    private String price;
    private String price2;
    @NotBlank
    private String name;
    private String thirdPartyTag;
    private Long auditId;
    private Integer auditStatus;
    
    public void copy(final WechatLiveGoods source) {
        BeanUtil.copyProperties((Object)source, (Object)this, CopyOptions.create().setIgnoreNullValue(true));
    }
    
    public Long getGoodsId() {
        return this.goodsId;
    }
    
    public Long getProductId() {
        return this.productId;
    }
    
    public String getCoverImgUrl() {
        return this.coverImgUrl;
    }
    
    public String getCoverImgeUrl() {
        return this.coverImgeUrl;
    }
    
    public String getUrl() {
        return this.url;
    }
    
    public String getPriceType() {
        return this.priceType;
    }
    
    public String getPrice() {
        return this.price;
    }
    
    public String getPrice2() {
        return this.price2;
    }
    
    public String getName() {
        return this.name;
    }
    
    public String getThirdPartyTag() {
        return this.thirdPartyTag;
    }
    
    public Long getAuditId() {
        return this.auditId;
    }
    
    public Integer getAuditStatus() {
        return this.auditStatus;
    }
    
    public void setGoodsId(final Long goodsId) {
        this.goodsId = goodsId;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setCoverImgUrl(final String coverImgUrl) {
        this.coverImgUrl = coverImgUrl;
    }
    
    public void setCoverImgeUrl(final String coverImgeUrl) {
        this.coverImgeUrl = coverImgeUrl;
    }
    
    public void setUrl(final String url) {
        this.url = url;
    }
    
    public void setPriceType(final String priceType) {
        this.priceType = priceType;
    }
    
    public void setPrice(final String price) {
        this.price = price;
    }
    
    public void setPrice2(final String price2) {
        this.price2 = price2;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setThirdPartyTag(final String thirdPartyTag) {
        this.thirdPartyTag = thirdPartyTag;
    }
    
    public void setAuditId(final Long auditId) {
        this.auditId = auditId;
    }
    
    public void setAuditStatus(final Integer auditStatus) {
        this.auditStatus = auditStatus;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof WechatLiveGoods)) {
            return false;
        }
        final WechatLiveGoods other = (WechatLiveGoods)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$goodsId = this.getGoodsId();
        final Object other$goodsId = other.getGoodsId();
        Label_0065: {
            if (this$goodsId == null) {
                if (other$goodsId == null) {
                    break Label_0065;
                }
            }
            else if (this$goodsId.equals(other$goodsId)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0102: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0102;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$auditId = this.getAuditId();
        final Object other$auditId = other.getAuditId();
        Label_0139: {
            if (this$auditId == null) {
                if (other$auditId == null) {
                    break Label_0139;
                }
            }
            else if (this$auditId.equals(other$auditId)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$auditStatus = this.getAuditStatus();
        final Object other$auditStatus = other.getAuditStatus();
        Label_0176: {
            if (this$auditStatus == null) {
                if (other$auditStatus == null) {
                    break Label_0176;
                }
            }
            else if (this$auditStatus.equals(other$auditStatus)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$coverImgUrl = this.getCoverImgUrl();
        final Object other$coverImgUrl = other.getCoverImgUrl();
        Label_0213: {
            if (this$coverImgUrl == null) {
                if (other$coverImgUrl == null) {
                    break Label_0213;
                }
            }
            else if (this$coverImgUrl.equals(other$coverImgUrl)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$coverImgeUrl = this.getCoverImgeUrl();
        final Object other$coverImgeUrl = other.getCoverImgeUrl();
        Label_0250: {
            if (this$coverImgeUrl == null) {
                if (other$coverImgeUrl == null) {
                    break Label_0250;
                }
            }
            else if (this$coverImgeUrl.equals(other$coverImgeUrl)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        Label_0287: {
            if (this$url == null) {
                if (other$url == null) {
                    break Label_0287;
                }
            }
            else if (this$url.equals(other$url)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$priceType = this.getPriceType();
        final Object other$priceType = other.getPriceType();
        Label_0324: {
            if (this$priceType == null) {
                if (other$priceType == null) {
                    break Label_0324;
                }
            }
            else if (this$priceType.equals(other$priceType)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        Label_0361: {
            if (this$price == null) {
                if (other$price == null) {
                    break Label_0361;
                }
            }
            else if (this$price.equals(other$price)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$price2 = this.getPrice2();
        final Object other$price2 = other.getPrice2();
        Label_0398: {
            if (this$price2 == null) {
                if (other$price2 == null) {
                    break Label_0398;
                }
            }
            else if (this$price2.equals(other$price2)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        Label_0435: {
            if (this$name == null) {
                if (other$name == null) {
                    break Label_0435;
                }
            }
            else if (this$name.equals(other$name)) {
                break Label_0435;
            }
            return false;
        }
        final Object this$thirdPartyTag = this.getThirdPartyTag();
        final Object other$thirdPartyTag = other.getThirdPartyTag();
        if (this$thirdPartyTag == null) {
            if (other$thirdPartyTag == null) {
                return true;
            }
        }
        else if (this$thirdPartyTag.equals(other$thirdPartyTag)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof WechatLiveGoods;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $goodsId = this.getGoodsId();
        result = result * 59 + (($goodsId == null) ? 43 : $goodsId.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $auditId = this.getAuditId();
        result = result * 59 + (($auditId == null) ? 43 : $auditId.hashCode());
        final Object $auditStatus = this.getAuditStatus();
        result = result * 59 + (($auditStatus == null) ? 43 : $auditStatus.hashCode());
        final Object $coverImgUrl = this.getCoverImgUrl();
        result = result * 59 + (($coverImgUrl == null) ? 43 : $coverImgUrl.hashCode());
        final Object $coverImgeUrl = this.getCoverImgeUrl();
        result = result * 59 + (($coverImgeUrl == null) ? 43 : $coverImgeUrl.hashCode());
        final Object $url = this.getUrl();
        result = result * 59 + (($url == null) ? 43 : $url.hashCode());
        final Object $priceType = this.getPriceType();
        result = result * 59 + (($priceType == null) ? 43 : $priceType.hashCode());
        final Object $price = this.getPrice();
        result = result * 59 + (($price == null) ? 43 : $price.hashCode());
        final Object $price2 = this.getPrice2();
        result = result * 59 + (($price2 == null) ? 43 : $price2.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        final Object $thirdPartyTag = this.getThirdPartyTag();
        result = result * 59 + (($thirdPartyTag == null) ? 43 : $thirdPartyTag.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "WechatLiveGoods(goodsId=" + this.getGoodsId() + ", productId=" + this.getProductId() + ", coverImgUrl=" + this.getCoverImgUrl() + ", coverImgeUrl=" + this.getCoverImgeUrl() + ", url=" + this.getUrl() + ", priceType=" + this.getPriceType() + ", price=" + this.getPrice() + ", price2=" + this.getPrice2() + ", name=" + this.getName() + ", thirdPartyTag=" + this.getThirdPartyTag() + ", auditId=" + this.getAuditId() + ", auditStatus=" + this.getAuditStatus() + ")";
    }
}
